Skip to content

fix(python-sdk): missing functions in AsyncSandbox.git#1109

Merged
matthewlouisbrockman merged 1 commit intoe2b-dev:fix-consolidate-sync-asyncfrom
bxxf:fix/async-sandbox-git-reset_restore
Jan 30, 2026
Merged

fix(python-sdk): missing functions in AsyncSandbox.git#1109
matthewlouisbrockman merged 1 commit intoe2b-dev:fix-consolidate-sync-asyncfrom
bxxf:fix/async-sandbox-git-reset_restore

Conversation

@bxxf
Copy link
Copy Markdown
Contributor

@bxxf bxxf commented Jan 30, 2026

Directly related to #1108. Please check the issue description for more details.

tldr: .restore() and .reset() functions are missing in the AsyncSandbox instance

also added test to check parity of methods/signatures between sync and async git instances

other potential concerns:

  • tests are only ran for the sync variant across the python-sdk - if there are any mismatches in the async logic (not only git i believe), the tests won't catch it

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 30, 2026

⚠️ No Changeset found

Latest commit: 5acd249

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@bxxf bxxf changed the title fix(python-sdk): missing functions in async sandbox fix(python-sdk): missing functions in AsyncSandbox.git Jan 30, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5acd249fcd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/python-sdk/tests/shared/git/test_parity.py
Copy link
Copy Markdown
Contributor

@matthewlouisbrockman matthewlouisbrockman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching! Good idea on the check between sync/async; minor warning on the asyncio.iscoroutinefunction - if you can switch it to inspect instead of asyncio then we can go ahead and get this in.


def test_async_methods_are_coroutines():
for name, method in _public_methods(AsyncGit).items():
assert asyncio.iscoroutinefunction(method), f"AsyncGit.{name} is not async"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead down to use the inspect function instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this! I wasn’t available at the time, but I see you’ve already resolved it - turns out my local dev env was using an older Python binary.

@matthewlouisbrockman matthewlouisbrockman changed the base branch from main to fix-consolidate-sync-async January 30, 2026 21:20
Copy link
Copy Markdown
Contributor

@matthewlouisbrockman matthewlouisbrockman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trying to figure out right way to do this without ci/cd blocking; as a fix for now merging into a branch for ci/cd, adding the extra consolidation, and PRing from there.

@matthewlouisbrockman matthewlouisbrockman merged commit 02d9761 into e2b-dev:fix-consolidate-sync-async Jan 30, 2026
4 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants